package com.ruoyi.merchant.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 公告实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
//@ApiModel("公告实体")
public class Announcement extends BaseEntity {
    
    private static final long serialVersionUID = 1L;
    
//    @ApiModelProperty("公告ID")
    private Long announcementId;
    
//    @ApiModelProperty("公告标题")
    private String title;
    
//    @ApiModelProperty("公告内容")
    private String content;
    
//    @ApiModelProperty("范围：1-全平台，2-区域，3-商户")
    private Integer scope;
    
//    @ApiModelProperty("区域ID")
    private Long regionId;
    
//    @ApiModelProperty("商户ID")
    private Long merchantId;
    
//    @ApiModelProperty("状态：0-草稿，1-发布，2-下线")
    private Integer status;
    
//    @ApiModelProperty("发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;
    
//    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
    
//    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;
    
//    @ApiModelProperty("删除时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deletedAt;
    
//    @ApiModelProperty("预留字段1")
    private String externField1;
    
//    @ApiModelProperty("预留字段2")
    private String externField2;
}
